package com.lechuang.goods.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lechuang.common.request.PageRequest;
import com.lechuang.goods.dto.FreightTemplateListDTO;
import com.lechuang.goods.entity.FreightTemplate;
import com.lechuang.goods.service.FreightTemplateService;
import com.lechuang.goods.mapper.FreightTemplateMapper;
import com.lechuang.goods.vo.FreightTemplateListVO;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
* @author apple
* @description 针对表【freight_template(运费模版)】的数据库操作Service实现
* @createDate 2024-06-21 18:38:32
*/
@Service
public class FreightTemplateServiceImpl extends ServiceImpl<FreightTemplateMapper, FreightTemplate>
    implements FreightTemplateService{

    @Resource
    private FreightTemplateMapper freightTemplateMapper;

    @Override
    public Page<FreightTemplateListVO> pageList(PageRequest<FreightTemplateListDTO> pageRequest, Set<Long> tenantIds) {
        Page<FreightTemplate> page = new Page<>(pageRequest.getPageNum(), pageRequest.getPageSize());
        return freightTemplateMapper.pageList(page, tenantIds);
    }
}




